package com.myaxuan.mapper.permissions;



import com.myaxuan.entity.permissions.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface UserMapper {
    /**
     * 删除
     * @param userId
     * @return
     */
    int deleteByPrimaryKey(@Param("userId") String userId);

    /**
     * 查询
     * @return
     */
	List<User> findAll(Integer page,Integer limit);

    /**
     * 新增
     * @param record
     * @return
     */
    int insertSelective(User record);

    /**
     * 查询
     * @param id
     * @return
     */
    User selectByPrimaryKey(String id);

    /**
     * 修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(User record);

    /**
     * 登陆
     * @param account
     * @return
     */
    User login(@Param("account")String account);

}